import request from '@/utils/request'

//获取项目的设计变更信息列表
export function getAlterationRecordList(data) {
    return request({
        url: '/renovation/designAlteration/getAlterationRecordList',
        method: 'post',
        data
    })
}
//提交新增的项目设计变更数据
export function addAlterationRecord(data) {
    return request({
        url: '/renovation/designAlteration/addAlterationRecord',
        method: 'post',
        data
    })
}
//编辑设计变更信息
export function updateAlterationRecord(data) {
    return request({
        url: '/renovation/designAlteration/updateAlterationRecord',
        method: 'post',
        data
    })
}
//根据id查询设计变更信息
export function getAlterationRecordById(data) {
    return request({
        url: '/renovation/designAlteration/getAlterationRecordById',
        method: 'post',
        formData:data
    })
}
//根据id删除设计变更信息
export function deleteAlterationRecord(data) {
    return request({
        url: '/renovation/designAlteration/deleteAlterationRecord',
        method: 'post',
        formData:data
    })
}
//根据项目id查询最新一条变更记录信息
export function getProjectNewestAlterationRecord(data) {
    return request({
        url: '/renovation/designAlteration/getProjectNewestAlterationRecord',
        method: 'post',
        formData:data
    })
}

//提交设计变更审查意见(区县/市中心/市局)
export function submitAlterationExamineOpinion(data) {
    return request({
        url: '/renovation/designAlteration/submitAlterationExamineOpinion',
        method: 'post',
        data
    })
}

// 获取设计变更记录的审查意见列表
export function getAlterationExamineOpinionList(data) {
    return request({
        url: '/renovation/designAlteration/getAlterationExamineOpinionList',
        method: 'post',
        data
    })
}

// 根据项目id查询最新流程中的设计变更专家咨询记录
export function getProjectNewestAlterationExpertConsultation(data) {
    return request({
        url: '/renovation/designAlteration/getProjectNewestAlterationExpertConsultation',
        method: 'post',
        formData:data
    })
}
//编辑最新流程中的设计变更专家咨询记录
export function submitAlterationExpertConsultation(data) {
    return request({
        url: '/renovation/designAlteration/submitAlterationExpertConsultation',
        method: 'post',
        data
    })
}

// 开始审核流程
export function startAuditFlow(data) {
    return request({
        url: '/renovation/designAlteration/startAuditFlow',
        method: 'post',
        formData:data
    })
}

// 开始自检
export function startSelfInspection(data) {
    return request({
        url: '/renovation/designAlteration/startSelfInspection',
        method: 'post',
        formData:data
    })
}

//精准差某条意见
export function getOpinionByAlterationIdAndEnumCode(data) {
    return request({
        url: '/renovation/designAlteration/getOpinionByAlterationIdAndEnumCode',
        method: 'post',
        formData:data
    })
}

//图件审查意见列表
export function getAlterationDrawingAuditAdviceList(data) {
    return request({
        url: '/renovation/designAlteration/getAlterationDrawingAuditAdviceList',
        method: 'post',
        data
    })
}
//图件审查意见
export function addAlterationDrawingAuditAdvice(data) {
    return request({
        url: '/renovation/designAlteration/addAlterationDrawingAuditAdvice',
        method: 'post',
        data
    })
}
//图件修改审查状态
export function changeDrawingAuditStatus(data) {
    return request({
        url: '/renovation/designAlteration/changeDrawingAuditStatus',
        method: 'post',
        formData:data
    })
}
//图件删除审查
export function deleteAlterationDrawingAuditAdvice(data) {
    return request({
        url: '/renovation/designAlteration/deleteAlterationDrawingAuditAdvice',
        method: 'post',
        formData:data
    })
}
//图件综合监管
export function supervisingInfo(data) {
    return request({
        url: '/renovation/designAlteration/supervising_info',
        method: 'post',
        data
    })
}

//获取附件列表
export function getFileDetail(data) {
    return request({
        url: '/renovation/designAlteration/getProjectNewestAlterationZipFile',
        method: 'post',
        formData:data
    })
}